﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucNoiDungTrangHome.ascx.cs"
    Inherits="Admin_ucControl_ucNoiDungTrangHome" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc1" %>
<h1>
    Nội dung trang chủ</h1>
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="50%" style="margin-left: 305px">
    <Columns>
        <asp:HyperLinkField DataTextField="id" DataNavigateUrlFormatString="~/Admin/them-noidung-home.aspx?id={0}"
            HeaderText="ID" DataNavigateUrlFields="id" HeaderStyle-Width="50px" HeaderStyle-HorizontalAlign="Center">
            <HeaderStyle Width="50px"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center" />
        </asp:HyperLinkField>
        <asp:TemplateField HeaderText="Hiển thị">
            <ItemTemplate>
                <asp:HyperLink ID="hyxemtruoc" runat="server" Target="_blank" NavigateUrl='<%# "~/Admin/hienthi-noidung-home.aspx?keepThis=true&TB_iframe=true&width=700&height=410&id=" + Eval("id") %>'
                    ToolTip="Hiển thị nội dung" CssClass="thickbox"> Xem trước</asp:HyperLink>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" />
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<br />
<asp:Panel ID="panel" runat="server">
    <table style="width: 100%">
        <%--   <tr>
            <th>
                Ngôn ngữ
            </th>
            <td>
                <asp:DropDownList ID="drLang" runat="server">
                    <asp:ListItem Value="1" Text="VietNames"></asp:ListItem>
                    <asp:ListItem Value="2" Text="English"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>--%>
        <tr>
            <th>
                Nội dung_Cột 1 :
            </th>
            <td>
                <FCKeditorV2:FCKeditor ID="noidung1" runat="server" BasePath="~/fckeditor/" Height="340px">
                </FCKeditorV2:FCKeditor>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                    ControlToValidate="noidung1"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <th>
                Nội dung_Cột 2 :
            </th>
            <td>
                <FCKeditorV2:FCKeditor ID="noidung2" runat="server" BasePath="~/fckeditor/" Height="340px">
                </FCKeditorV2:FCKeditor>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                    ControlToValidate="noidung2" ValidationGroup="save"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <th>
                Nội dung_Cột 3 :
            </th>
            <td>
                <FCKeditorV2:FCKeditor ID="noidung3" runat="server" BasePath="~/fckeditor/" Height="340px">
                </FCKeditorV2:FCKeditor>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                    ControlToValidate="noidung3" ValidationGroup="save"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <th>
                Nội dung_Bottom :
            </th>
            <td>
                <FCKeditorV2:FCKeditor ID="noidungbotoom" runat="server" BasePath="~/fckeditor/"
                    Height="340px">
                </FCKeditorV2:FCKeditor>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*"
                    ControlToValidate="noidungbotoom" ValidationGroup="save"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" ValidationGroup="save" />
            </td>
        </tr>
    </table>
</asp:Panel>
<br />
